1. Introduction
This project consists of 1 Mobile App, 1 Admin Portal clubbed Website.
Technologies Used in Web App are:
We have built the Mobile App using React Native(Expo) for iOS and Android
The main Technologies used are
This project consists of 1 Mobile App, 1 Admin Portal clubbed Website.
Technologies Used in Web App are:
We have built the Mobile App using React Native(Expo) for iOS and Android
The main Technologies used are
Follow the link for more info on support.
HELP & SUPPORT
To run the 2 Apps you need following things in your development machine as mentioned below.
A. Download NodeJs
To ensure that NodeJs is installed correctly, you can type:
node -v
NOTE: DO NOT IGNORE THE NODE JS VERSION. IT HAS TO BE 18.18.x
B. Install Git (Windows PC Only)
C. Install Python 3.12.0 (M1 Mac Only)
D. Install Eas Cli
npm install -g eas-cli
eas login
E. Install Yarn
npm install -g yarn
F. Install Firebase Tools and Login to Firebase
npm install -g firebase-tools
firebase login
G. Copy Firebase Login Token
firebase login:ci
Step 1 Select Google account
Step 2 Allow the firebase
You got success message
Go to command prompt and copy the token
Now go to your Expo account -> Select the project -> Create a Secret
Use Secret name FIREBASE_TOKEN and in Secret value paste the token and Save.
Step 1 First Extract the Zip file downloaded from codecanyon.
Open the folder 'Sourecode' in Code Editor after extracting the Zip
Step 2 Change the App Name and App Description in the /functions/config.json
The app_identifier is very important. It is also known as Package Name in Android World and Bundle Identifier in iOS World
It is written like com.your-organisation-website-name.app-nameNote: The app_identifier should be in lowercase only.
Step 3 Change all Logo, Splash and other images related to branding kept in assets folders
Note: Do not change any dimension or file name of the images given. Only overwrite the content of image using image editor.
Step 4 Go to Firebase Console and then create a new project as shown in picture.
Type in your project name as shown in picture.
Accept terms and click on 'Create Project' as shown in picture.
When your project is ready click the 'Continue' button as shown in picture.
Create a new Realtime Database as shown in picture.
NOTE: Update billing Spark to Blaze
Start in locked mode and then enable it.
Create a new Storage as shown in picture.
Start in Production mode and then next it.
Step 5 Configure GCP Server Location.
1. Select Default GCP resource location in Firebase Portal -> Settings -> General
2. Copy Project ID from Firebase Portal -> Settings -> General and paste in the /functions/config.json as shown below. Change the XXXXXX only. Do not tamper with the JSON structure.
Step 6 Change the Google map keys in the same file /functions/config.json.
Replace XXXXXX only. You can use same API key in 4 places or 4 different API keys for the 4 different platforms to better monitor platform wise usage and advance security.
Follow the Steps below to collect a valid Google API Key
Open https://console.cloud.google.com/google/maps-apis/overview
Create a new project. Make sure the type of project is MAP PLATFORM type if asked and Billing will be dollar $ USD based. You will have to setup a Billing account if you do not have a dollar $ billing account. Then click on Create. Note: Firebase creates a project in Google cloud also. Avoid using the same for the Google Maps project.
Click on Menu Icon -> API & Services -> Credentials
Click on "Create Credential"
Click on "Create Credential" Copy the API key. This will be used in code.
Couple of more steps required from some extra permissions. Click on API & Services -> Dashboard -> Enable APIs and Services
Enable All the APIs show below. Very Important
This is how you enable each API. Enable all the 7
Note: Enable billing in this Google Cloud Platform. Very important.
Step 7 You should enter the Purchase Code in the /functions/config.json.
Step 8 Go to firebase console and Click on Authetication Menu. Click on Sign-in-Method. Click on Google icon then enter your email id now click on Save button and follow the instruction as show in pictures
Step 9 Click on Authetication Menu and click on Sign-in Method and hover on Email/ Password pencil icon and follow the instruction as show in pictures
Similarly enable the Phone Auth as shown below
Similarly enable the Apple Auth as shown below. Also add the Bundle Indentifier in the "Service ID"
Step 10 Create a project in https://expo.dev by logging with your Expo account
Try to use the same Firebase Project Id in SlugRun the below commands to run and deploy the web app.
Use Command Prompt in Administrator Mode if using MS Windows. Also note that when you make some changes in code, you have to repeat all these commands.
cd Sourecode
yarn
yarn deploy
After successfully deploying your project you will receive the hosted url in the terminal.
Open the URL mentioned in result of the last line of the command. Go to login and type the admin email you mentioned as admin_email on the config.json.
Use FORGOT PASSWORD to generate new password for Admin.
For activating any Payment Gateway, add the API keys of the payment gateway you want in the Payment Settings of Admin panel and make the active as true then click on Submit button.
Go into the Main code folder in Command Prompt
cd Sourecode
yarn app:build-android
yarn app:build-ios
*For APK build run yarn app:build-android-apk
When anything asked in the process above, let eas build handle all the certificate and key generation for you.
For Android Push Notifications
Then Go your Expo account -> Select Project -> Project settings -> Credentials -> choose Android -> Application Identifier
Click the Add a service account key
Then Go Upload new key tab and select the JSON that you got from Firebase -> Service accounts section
Go to Expo Account -> Select The Project -> Credentials
Click on Application Identifiers
Copy the SHA-1 Certificate Fingerprint
Go to your Firebase Portal -> Project Settings -> General -> Android apps -> Click on Add Fingerprint
Now paste the SHA-1 Certificate Fingerprint and Click on Save button
After Publish Your App in PlayStore Copy SHA-1 certificate fingerprint
And Paste It in your Firebase Portal -> Project Settings -> General -> Android apps -> Click on Add Fingerprint
Go to Expo Account -> Select The Project -> Credentials
Click on Application Identifiers(IOS)
Go to Service Credentials > Push Key > Press Push Key Button and copy Key ID and Apple Team Identifier
Go to Firebase Portal -> Project Settings -> Cloud Messaging -> Apple app configuration -> Upload the downloaded Push Key in APNs Authentication Key
Browse the downloaded Push Key file and paste both Key ID and Apple Team Identifier Respectively
How To Set Google Login In Your Project
Go your google cloud console > APIs & Services > Credentials
Then click on Web client (auto created by Google Service)
Authorized JavaScript origins > add your web url(Firebase Portal -> Hosting -> Domains) and click on Save button
Then go your OAuth consent screen > then select External > click on create button
Then go Authorized domains section and add your web url(Firebase Portal -> Hosting -> Domains) and add your email id .
Then click on SAVE AND CONTINUE button